Skip to content

fix(theme): empty workspace paper follows four-theme switches - #46

Merged
taekchef merged 1 commit into
mainfrom
codex/fix-empty-page-theme
Jul 25, 2026
Merged

taekchef merged 1 commit into
mainfrom
codex/fix-empty-page-theme

Conversation

@taekchef

Copy link
Copy Markdown
Collaborator

Summary

  • Empty workspace (blank board) paper color now tracks 纸面 / 宣纸 / 墨石 / 石碑 switches.
  • Root cause: long-lived NSHostingView kept stale Color(nsColor:) / ambient WeiBeiTheme snapshots.
  • Fix: explicit mode-resolved sRGB colors, rebuild on theme notification + appearanceEpoch, AppKit layer paper sync without reassigning rootView (pane continuity / SelfCheck).

Test plan

  • ./script/build_and_run.sh succeeds
  • Close all panes (DOC / CHAT / NOTES) and switch themes — blank field paper changes
  • Open reader empty state — paper also follows theme
  • Pane open/close animation still continuous (no host teardown)

Long-lived NSHostingView empty board kept stale Color(nsColor:) snapshots.
Resolve paper from explicit appearanceMode, rebuild on theme notification,
and sync AppKit layer fill without reassigning rootView.
@taekchef
taekchef merged commit ace5818 into main Jul 25, 2026
@taekchef
taekchef deleted the codex/fix-empty-page-theme branch July 25, 2026 03:35
taekchef added a commit that referenced this pull request Sep 30, 2026
Extract only the pane-focus and applicable safety-fixture repairs from original Codeberg commit e35964b (Codeberg #46 / GitHub #515), preserving the remainder of that draft. Restore quote-to-floating-draft and observe the actual SwiftUI row in acceptance; keep every required CI category and existing fixture assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant